package chat.whiteboard.draw.elements;

import java.awt.Graphics;

public class Arrow extends Drawing {
	public Arrow(int xpt, int ypt) {
		x = xpt;
		y = ypt;
		w = 40;
		h = 40;
		saveAsRect();
	}

	public void draw(Graphics g) {
		g.setColor(color);
		g.drawLine(x, y, x+w, y+h);
		g.drawLine(x + w - 5, y + h, x+w, y+h);
		g.drawLine(x + w, y + h - 5, x+w, y+h);
	}
}
